package cn.ctodb.mall.goods.service.dto;


import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
import java.util.Objects;
import javax.persistence.Lob;

/**
 * A DTO for the GoodAttr entity.
 */
public class GoodAttrDTO implements Serializable {

    private Long id;

    @Lob
    private String attrValue;

    private String attrPric;

    private Long goodsId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getAttrValue() {
        return attrValue;
    }

    public void setAttrValue(String attrValue) {
        this.attrValue = attrValue;
    }
    public String getAttrPric() {
        return attrPric;
    }

    public void setAttrPric(String attrPric) {
        this.attrPric = attrPric;
    }

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        GoodAttrDTO goodAttrDTO = (GoodAttrDTO) o;

        if ( ! Objects.equals(id, goodAttrDTO.id)) { return false; }

        return true;
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(id);
    }

    @Override
    public String toString() {
        return "GoodAttrDTO{" +
            "id=" + id +
            ", attrValue='" + attrValue + "'" +
            ", attrPric='" + attrPric + "'" +
            '}';
    }
}
